<!DOCTYPE html>
<html>
<head>
    <% include ../include/css_header.html %>
    <title>快乐邦:聚会</title>
</head>
<body class="actlist_bg">
<div class="container">
    <div class="top_bar">
        <a class="icon-arrow-left bar_left" href="/invite/<%=actId %>"></a>
        <!-- <a class="icon-cog bar_right" href="#" style=""></a>-->
    </div>
    <div style="height: 20px;"></div>
    <div class="row" style="margin: 0;min-height: 450px;">
        <div class="col-xs-12 bg_op_panel" style="min-height: 400px;">
            <div style="height: 20px;"></div>
            <div style="text-align: center">
                <div>
                    <img src="/img/<%=user.id %>" class="img-circle" onError="this.src='/fj_default_headimg';" style="border: 5px solid rgba(255, 255, 255, 0.3);"/>
                </div>
                <% if(myScore == 0){ %>
                <h3>即使没抢到快乐镑，也要去得瑟一下！</h3>
                <%}else if(myScore){ %>

                <h3>获得<span style="color: #F9640A;font-size: 30px"><%=myScore || 1 %></span>快乐镑，快去得瑟一下！</h3>
                <% } %>
                <button type="button" class="btn btn-success btn-block toShare">
                    <strong>得瑟一下～</strong>
                </button>
                <div style="font-size: 12px; color: rgb(102, 102, 102); margin: 10px 0px;">补充下面信息可以得瑟出去哟~</div>
                <div class="bg_white_panel" style="text-align: left" onclick="javascript:window.location.href='/newCard/<%=myCard.id %>'">
                    <ul style="margin: 0;">
                        <li><label>称呼:</label> <%=myCard.name %></li>
                        <li><label>公司:</label> <%=myCard.company || '' %></li>
                        <li><label>职位:</label> <%=myCard.position || '' %></li>
                        <li><label>行业:</label> <%=myCard.business || '' %></li>
                        <li><label>产品/服务:</label> <%=myCard.product || '' %></li>
                    </ul>
                </div>
            </div>

            <div style="font-size: 12px; color: rgb(102, 102, 102); margin: 10px 0px;">
                <a href="http://mp.weixin.qq.com/s?__biz=MzA5Mzk1MTMyMg==&mid=200640621&idx=1&sn=935248e43891ceb45f294b079f739f37#rd">想第一时间收到聚会通知抢沙发？关注“快乐邦”公众号就能收到消息啦~</a>
            </div>

        </div>
    </div>
    <% include ../include/copyright.html %>
</div>
<% include ../include/guide_tip.html %>
<% include ../include/js_footer.html %>
<script>
    var actId = '<%=actId %>';
    var userId = '<%=user.id %>';
    var desc = <% if(myCard.business && myCard.product){ %>
        '专注“<%=myCard.business %>”60年打造“<%=myCard.product %>”限时白送啦～'
        <% }else if(!myCard.business && myCard.product){ %>
        '60年打造“<%=myCard.product %>”限时白送啦～'
        <% }else if(myCard.business && !myCard.product){ %>
        '专注“<%=myCard.business %>”60年...还想再干500年！'
        <% }else{ %>
        '专注抢沙发技术100年，那么问题来了，抢沙发技术哪家强？'
        <% } %>
    var index = <%if(no==1){%>'沙发'<%}else if(no==2){%>'板凳'<%}else if(no==3){%>'地板'<%}else if(no==4){%>'地下室'<%}else{%>'<%=no %>#'<%}%>
    var shareData = {
        title: index+'<%=myCard.name %>'+desc,
        img_url: siteGlobal.SITE_HOST+'/img/'+userId,
        link: siteGlobal.SITE_HOST+'/invite/'+actId+'/'+userId,
        desc: '“<%=factionName %>”(<%=actName %>)我抢了<%=myScore%>快乐镑!你能超过我吗?'
    }
    $(function(){
        WeixinUtil.initConfig(['onMenuShareTimeline', 'onMenuShareAppMessage'], true, function(){
            WeixinUtil.sharePage(shareData.title, shareData.desc, shareData.img_url, shareData.link, function(){

            })
        })
    })

</script>
</body>
</html>